<?php if(!defined('PHPOK_SET')){die('<h3>Error...</h3>');}?><?php QG_C_TEMPLATE::p("global_head","","0");?>
<?php QG_C_TEMPLATE::p("right.css","","0");?>
<?php QG_C_TEMPLATE::p("right.head","","0");?>

<!-- 图片管理 -->
<table width="100%">
<tr>
	<td class="qg_notice" style="text-align:left;">
		<a href="admin.php?file=index">系统首页</a> &raquo;
		<a href="admin.php?file=index.set&act=list">首页"即将上市"图片管理</a> &raquo;
		当前动作：首页"即将上市"图片管理
	</td>
</tr>
</table>

<form name="qgform" action="admin.php?file=coming.img&act=setok&id=<?php echo $id;?>" method="post">
<div class="table">
<table width="100%">
<tr>
	<td class="left"></td>
	<td class="right clue_on" style="color:#f00">说明：图片请自行处理大小为 210px × 110px，网址请带“http://”，最多支持3张图片</td>
</tr>
</table>
</div>
<?php $_i=0;$qgarray=(is_array($qgarray))?$qgarray:array();foreach($qgarray AS  $key=>$value){$_i++; ?>
<?php $img_file = $imgarray[$value];;?>
<?php $url_file = $urlarray[$value];;?>
<?php $label_file = $labelarray[$value];;?>
<div class="table">
<table width="100%">
<tr>
	<td class="left">图片：<?php echo $value;?></td>
	<td class="right">
		<input type="text" name="img_<?php echo $value;?>" id="img_<?php echo $value;?>" value="<?php echo $img_file;?>" class="long_input">
		<input type="button" value="选择图片" onclick="to_openpic('img_<?php echo $value;?>')">
	</td>
	<td rowspan="3">
		<img width="105px" height="55px" src="<?php echo $img_file;?>"  id="img_<?php echo $value;?>_show" />
	</td>
</tr>
<tr>
	<td class="left">标题：<?php echo $value;?></td>
	<td class="right"><input maxlength="50" type="text" name="label_<?php echo $value;?>" id="label_<?php echo $value;?>" value="<?php echo $label_file;?>" class="long_input"></td>
</tr>
<tr>
	<td class="left">网址：<?php echo $value;?></td>
	<td class="right"><input type="text" name="url_<?php echo $value;?>" id="url_<?php echo $value;?>" value="<?php echo $url_file;?>" class="long_input"></td>
</tr>
</table>
</div>
<hr size="1" color="#AAAAAA">
<?php } ?>
<div class="table">
<table width="100%">
<tr>
	<td class="left"></td>
	<td class="right"><input type="submit" value="提 交" class="smt"></td>
</tr>
</table>
</div>
<script type="text/javascript">
function to_openpic(id)
{
	var siteurl = "admin.php?file=open.index.img&act=list&id="+id;
	qg_open(siteurl,"500");
}
function resetPic(id,src)
{
	$(id+'_show').src = src;
}
</script>